//
//  ILLView.m
//  HeartTravel
//
//  Created by lanou on 15/10/27.
//  Copyright © 2015年 陈文杰. All rights reserved.
//

#import "ILLView.h"

@implementation ILLView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        CGFloat height = frame.size.height;
        _iconImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 5, height, height)];
        _iconImageView.layer.cornerRadius = height / 2;
        _iconImageView.layer.masksToBounds = YES;
        
        _nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(height + 5, 5, frame.size.width * 4/5, height / 2)];
        _nameLabel.font = [UIFont systemFontOfSize:13];
        _nameLabel.textColor = [UIColor lightGrayColor];
        
        _timeLabel = [[UILabel alloc]initWithFrame:CGRectMake(height + 5, height/2 + 5, frame.size.width * 4/5, height/2)];
        _timeLabel.font = [UIFont systemFontOfSize:11];
        _timeLabel.textColor = [UIColor lightGrayColor];
        
        _iconImageView.backgroundColor = [UIColor redColor];
        _nameLabel.text = @"很多很多滑动到";
        _timeLabel.text = @"2015.10.27 15.12.13";
        
        [self addSubview:_iconImageView];
        [self addSubview:_nameLabel];
        [self addSubview:_timeLabel];
    }
    return self;
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
